package com.ashley.day_13;

public class AnimalTest {

    
}
class Animal{
    public void eat(){
        System.out.println("动物进食");
    }


    public void shout(){
        System.out.println("动物，叫");
    }
}

class Dog{
    public void eat(){
        System.out.println("狗，吃骨头");
    }
    public void shout(){
        System.out.println("汪！汪！汪");
    }
}
class Cat{
    public void eat(){
        System.out.println("猫，吃鱼");
    }
    public void shout(){
        System.out.println("喵！喵！喵！");
    }
}